// 评估管理板块常量和配置项
export const PAGE_STATUS = {
  CHOOSE: 1,
  INFOMATION: 2,
  ALLOCATION: 3,
};

export const DROPDOWN_STATUS = {
  EDIT: 'edit',
  REMIND: 'remind',
};

export const ANSWER_ACTIONS = {
  EDIT: 0,
  FLAG: 1,
  ASSIGNED: 2,
  UPLOAD: 3,
  MESSAGE: 4,
  HISTORY: 5,
};

export const QUESTIONNAIRE_STATUS = {
  DELETED: 0,
  NORMAL: 1,
  TO_BE_FILLED: 2,
  TO_BE_RIVIEWED: 3,
  COMPLETED: 4,
  EXPIRED: 5,
  PREVIEW: 6,
};

export const TREE_FILTER_ACTIONS = {
  REQUIRED: 1,
  UNFILLED: 2,
  FLAG: 3,
  ASSIGNED: 4,
  MESSAGE: 5,
};

export const checkboxOptions = [
  { label: '必填项', value: TREE_FILTER_ACTIONS.REQUIRED },
  { label: '未填项', value: TREE_FILTER_ACTIONS.UNFILLED },
  { label: '已标记', value: TREE_FILTER_ACTIONS.FLAG },
  { label: '已指派', value: TREE_FILTER_ACTIONS.ASSIGNED },
  { label: '已评论', value: TREE_FILTER_ACTIONS.MESSAGE },
];

export const dropdownOptions = [
  {
    content: '编辑问卷',
    value: DROPDOWN_STATUS.EDIT,
  },
  {
    content: '发送提醒',
    value: DROPDOWN_STATUS.REMIND,
  },
];

export const stepsOptions = [
  { value: PAGE_STATUS.CHOOSE, title: '模板选择', content: '选择评估所需模板' },
  { value: PAGE_STATUS.INFOMATION, title: '评估信息', content: '输入评估相关的详细信息' },
  { value: PAGE_STATUS.ALLOCATION, title: '评估任务分配', content: '可以为多位协作者分配评估任务' },
];

export const tagOptions = {
  [QUESTIONNAIRE_STATUS.NORMAL]: {
    name: '正常',
    theme: 'success',
  },
  [QUESTIONNAIRE_STATUS.TO_BE_FILLED]: {
    name: '待填写',
    theme: 'warning',
  },
  [QUESTIONNAIRE_STATUS.TO_BE_RIVIEWED]: {
    name: '待审核',
    theme: 'primary',
  },
  [QUESTIONNAIRE_STATUS.COMPLETED]: {
    name: '已完成',
    theme: 'success',
  },
  [QUESTIONNAIRE_STATUS.EXPIRED]: {
    name: '已过期',
    theme: 'danger',
  },
};
